#include <iostream>
#include "Tanah.h"
	
using namespace std;
	
int Tanah::getObjectType() const
{
	return tipe_object;
}	
	
Tanah::Tanah(bool isnonplantableval,bool issellingspotval) : Object(0)
/*constructor*/
{
	isplowed = false;
	isnonplantable = isnonplantableval;
	issellingspot = issellingspotval; 
	
}

Tanah::Tanah(bool isplowedval, bool isnonplantableval, bool issellingspotval) : Object(0){
	isplowed = isplowedval;
	isnonplantable = isnonplantableval;
	issellingspot = issellingspotval;
}

Tanah::Tanah(const Tanah& oldTanah) : Object(0)
/*copy constructor*/
{
	isplowed = oldTanah.isPlowed();
	isnonplantable = oldTanah.isNonPlantable();
	issellingspot = oldTanah.isSellingSpot();
}

Tanah::~Tanah()
/*destruktor*/
{

}

bool Tanah::isPlowed() const
/*mengembalikan nilai isplowed*/
{
	return isplowed;
}

bool Tanah::isNonPlantable() const
/*mengembalikan nilai isnonplantable*/
{
	return isnonplantable;
}

bool Tanah::isSellingSpot() const
/*mengembalikan nilai issellingspot*/
{
	return issellingspot;
}

void Tanah::SetPlowed(bool abool)
/*set isplowed menjadi value*/
{
	isplowed=abool;
}

void Tanah::SetNonPlantable(bool abool)
/*set isnonplantable menjadi value*/
{
	isnonplantable=abool;
}

void Tanah::SetSellingSpot(bool abool)
/*set issellingspot menjadi value*/
{
	issellingspot=abool;
}

